import request from '../utils/request'

//请求所有会员信息
export function reqAllHuiYuan() {
    return request.get('/member/getAllMembers')
}
//请求所有套餐信息
export function reqTaocan() {
    return request.get('/meal/getAllMeal')
}

//删除套餐
export function delTaocan(data:object) {
    return request('/meal/delMeal',{
        data,
        method:"POST"
    })
}
//更新套餐
export function updateTaocan(data:object) {
    return request('/meal/updateMeal',{
        data,
        method:"POST"
    })
}
//添加套餐
export function addTaocan(data:object) {
    return request('/meal/addMeal',{
        data,
        method:"POST"
    })
}

//开通会员
export function chongHuiYuan(data:object) {
    return request('/member/updateMemberToVip',{
        data,
        method:"POST"
    })
}
//取消会员
export function cancleHuiYuan(data:object) {
    return request('/member/cancleMember',{
        data,
        method:"POST"
    })
}


